package net.ericaro.neojavagen.classes ;
import net.ericaro.neojavagen.classes.FieldModifiers;
import net.ericaro.neojavagen.classes.VariableDeclarators;
import net.ericaro.neojavagen.packages.JavadocComment;
import net.ericaro.neojavagen.classes.ClassBodyDeclaration;
import net.ericaro.neojavagen.types.Type;
import net.ericaro.neojavagen.interfaces.Annotations ;

/**
* *<pre> FieldDeclaration :
    JavadocComment? Annotations? FieldModifiers? Type VariableDeclarators ;
</pre>
*/
public class FieldDeclaration  implements ClassBodyDeclaration {

JavadocComment javadoccomment;
Annotations annotations;
FieldModifiers fieldmodifiers;
Type type;
VariableDeclarators variabledeclarators ;

public FieldDeclaration( JavadocComment javadoccomment, Annotations annotations, FieldModifiers fieldmodifiers, Type type, VariableDeclarators variabledeclarators ){
	this.javadoccomment = javadoccomment; this.annotations = annotations; this.fieldmodifiers = fieldmodifiers; this.type = type; this.variabledeclarators = variabledeclarators ;
	}public FieldDeclaration( Type type, VariableDeclarators variabledeclarators ){
this.type = type; this.variabledeclarators = variabledeclarators ;
}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	if (this.javadoccomment !=null ) stringbuilder.append( this.javadoccomment ).append(" ");
if (this.annotations !=null ) stringbuilder.append( this.annotations ).append(" ");
if (this.fieldmodifiers !=null ) stringbuilder.append( this.fieldmodifiers ).append(" ");
stringbuilder.append( this.type ).append(" ");
stringbuilder.append( this.variabledeclarators ).append(" ");
stringbuilder.append( ";\n" ).append(" ") ;
	return stringbuilder.toString();
}

}
